package com.kgc.sbt;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

import javax.annotation.PostConstruct;

@SpringBootApplication
@EnableDubbo
@MapperScan("com.kgc.sbt.mapper")
//@EnableElasticsearchRepositories(basePackages = "com.kgc.sbt.repository")
public class CenterProvider1Application {
   /* @PostConstruct
    public void init() {
        // 解决netty启动冲突的问题（主要体现在启动redis和elasticsearch）
        // 可以看Netty4Util.setAvailableProcessors(..)
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }*/


    public static void main(String[] args) {
        SpringApplication.run(CenterProvider1Application.class, args);
    }

}
